﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace HY.WEB
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {

        }

        protected void Session_Start(object sender, EventArgs e)
        {
            Session["safe"] = false;
            Session["ID"] = string.Empty; //用户登陆账号
            Session["user"] = string.Empty;      //员工姓名
            Session["test"] = false;


            Session["role"] = string.Empty;  //取权限
            Session["bh"] = string.Empty;  //员工编号
            Session["sid"] = string.Empty;   //用户登陆账号
        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {
            
        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {
          
            Session["safe"] = false;
            Session["ID"] = string.Empty; //用户登陆账号
            Session["user"] = string.Empty;      //员工姓名
            Session["test"] = false;

          
            Session["role"] = string.Empty;  //取权限
            Session["bh"] = string.Empty;  //员工编号
            Session["sid"] = string.Empty;   //用户登陆账号


        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}